/**
 * com.monte.basedata.DataEntity.java
 * create by FengMy from 2013
 */
package com.monte.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @描述:数据实体基类
 * @author FengMy
 * @since 2013-3-25
 */
@MappedSuperclass
public abstract class DataEntity extends CoreEntity {
	private static final long serialVersionUID = 303886688117774404L;
	
	/**
	 * 名称
	 */
	@Column(name="FNAME",length=80)
	private String name;
	
	/**
	 * 编码
	 */
	@Column(name="FNUMBER",length=80)
	private String number;
	
	/**
	 * 描述
	 */
	@Column(name="FDESCRIPTION",length=2000)
	private String description;
	
	/**
	 * 创建时间
	 */
	@Column(name="FCREATETIME",nullable=false) 
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	/**
	 * 最后更新时间
	 */
	@Column(name="FLASTUPDATETIME",nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastUpdateTime;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
}
